package com.antSort;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class visual extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        //Pane root = FXMLLoader.load(getClass().getResource("demo.fxml"));
        FXMLLoader loader = new FXMLLoader(getClass().getResource("demo.fxml"));
        Parent root = loader.load();
        demoControl controller = loader.getController(); // 获取控制器实例（这里假设你的控制器类名为 demoControl）

        Scene scene=new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.setTitle("矩形排样");
        primaryStage.show();
    }
}
